package com.haohuo.question2;

/**
 * 定义图的顶点类
 */
public class Vertex {

    /**
     * 顶点描述
     */
    private String label;

    private int inDegree;
    private int outDegree;

    public Vertex(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }


    public int getInDegree() {
        return inDegree;
    }

    public void setInDegree(int inDegree) {
        this.inDegree = inDegree;
    }

    public int getOutDegree() {
        return outDegree;
    }

    public void setOutDegree(int outDegree) {
        this.outDegree = outDegree;
    }

    @Override
    public String toString() {
        return label;
    }
}
